﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JmShared
{

    /// <summary>
    /// List of contacts and groups sent to connecting clients
    /// </summary>
    public class ClientList
    {
        /// <summary>
        /// A list of all device specific clients visible to the user.
        /// This includes every contact in the friends list and
        /// contacts added through group membership.
        /// </summary>
        public List<UserInfo> Clients { get; set; }
        /// <summary>
        /// The usernames of people in the users friends list.
        /// Contacts added through group memberships are not included.
        /// </summary>
        public List<string> FriendUsernames { get; set; }
        /// <summary>
        /// Groups the user is a member of.
        /// </summary>
        public IList<ChatGroup> ChatGroups { get; set; }

        public ClientList(List<UserInfo> clients, List<string> friendUsernames, IList<ChatGroup> groups)
        {
            this.Clients = clients;
            this.FriendUsernames = friendUsernames;
            this.ChatGroups = groups;
        }
        private ClientList() { }
    }
}
